Skip to content

Momir use random land art#10220

Open
clairchiara wants to merge 4 commits intoCard-Forge:masterfrom
clairchiara:feature/momir-random-land-art
Open

Momir use random land art#10220
clairchiara wants to merge 4 commits intoCard-Forge:masterfrom
clairchiara:feature/momir-random-land-art

Conversation

@clairchiara
Copy link
Copy Markdown

Fix bug with Momir always using land art from the last set to generate the deck
+
make the lands more randomised and not all from the same set

@Hanmac Hanmac requested review from Agetian and Jetz72 March 31, 2026 15:26

/** Returns a runnable to start a match with the applied variants if allowed. */
public Runnable startGame() {
FModel.getBlocks(); // Ensure blocks are loaded for Momir Basic and MoJhoSto deck generation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is the most appropriate place to apply this workaround, or if it's the most appropriate workaround. Anyone else have any thoughts on this, @Hanmac, @tool4ever?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this got broken by #8750, so thanks for the find

imo just needs to be refactored to have getBlockLands() lazy initialize itself

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's tricky because neither FModel nor CardBlock are accessible from GameType or StaticData, but I could move it inside this block so it's only loaded when the deck needs to be autogenerated
else if (autoGenerateVariant != null) {

Sorry I'm not really familiar with the codebase yet

@clairchiara clairchiara force-pushed the feature/momir-random-land-art branch from efa38fd to ecff5e3 Compare March 31, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants